<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

</head>
  <body>
    <div class="box">
      <div class="item1"></div>
      <div class="item2"></div>
      <div class="item4"></div>
      <div class="item3">123</div>
    </div>
    <style>
      .box {
        width: 500px;
        height: 500px;
        background-color: yellow;
        position: relative;
        overflow: hidden;
      }
      .item1 {
        height: 100px;
        background-color: red;
      }
  
      .item2  {
        width: 100%;
        height: 500px;
        background-color: blue;
        position: absolute;
        top: 300px;
      }
  
    </style>
</body>
</html>